﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace UI.Web
{
    public partial class Page : System.Web.UI.Page
    {
        protected string column;
        protected Models.ModelContent oneDocument;
        protected List<Models.Column> columnlist;
        protected string columnParent;
        protected void Page_Load(object sender, EventArgs e)
        {
            column = Request.QueryString["column"];
            string cid = BLL.GetList.ColumnNameToID(true)[column].ToString();
            oneDocument = BLL.Find.FindContent(cid);
            if (BLL.Find.FindOneColumn(cid).ParentID != 0)
            {
                columnParent = BLL.Find.FindOneColumn(BLL.Find.FindOneColumn(cid).ParentID.ToString()).Name;
                columnlist = BLL.Find.FindSubColumn(BLL.Find.FindOneColumn(cid).ParentID.ToString());
            }
        }
    }
}